import request2 from '@/utils/request2'
import { safetyApiUrl } from '@/api/config'

export default {
  // 项目管理过程考核表-列表查询
  findListByMain(params, data) {
    return request2({
      url: safetyApiUrl + '/check-record/findListByMain', method: 'post', params, data
    })
  },
  // 项目管理过程考核表-根据ID查询详情
  findById(params, data) {
    return request2({
      url: safetyApiUrl + '/check-record/findById/' + params.id, method: 'get', params, data
    })
  },
  // /check-record/editByMain
  // 项目管理过程考核表-编辑
  editByMain(params, data) {
    return request2({
      url: safetyApiUrl + '/check-record/editByMain', method: 'post', params, data
    })
  },
  // 项目管理过程考核表-新增
  createByMain(params, data) {
    return request2({
      url: safetyApiUrl + '/check-record/createByMain', method: 'post', params, data
    })
  }
}